package morphism;

public class Type {
    public static void main(String[] args) {
        Person p = new Person("p", 16);
        Student s = new Student("s", 18, "software");
        Teacher t = new Teacher("t", 28, "scct");

        System.out.println(p instanceof Person);
        System.out.println(s instanceof Person);
        System.out.println(t instanceof Person);

        System.out.println(s instanceof Student);

    }
}
